<?php $this->load->view('left_side.php'); ?>

<div class="middle-contenter">
    <div class='dashboard-contenter-header'>
        <a style='text-decoration: none;' href="<?php echo base_url(); ?>index.php/site/members_area/">Home &gt; </a>
        Vendor
    </div>
    <center>
    <table class="listdata">
        <thead>
            <tr>
                <th>Vendor Name</th>
                <th>Model</th>
                <th></th>
                <th></th>
            </tr>
        </thead>
        <tbody>
    <?php 
        foreach($modellist as $item)
        {
            echo '<tr class="even">';
            echo '<td>' . $item->cs_vendor_name .'</td>';
            echo '<td>'. $item->cs_product_model .'</td>';
            echo '<td><a class="edit-event" href="'. base_url() .'index.php/user/update_user/'. $item->cs_vendor_id .'/"><img src="'. base_url() .'/images/edit.png"/></a> </td>';
            echo '<td><a class="delete-event" href="'. base_url() .'index.php/user/delete_user/'. $item->cs_vendor_id .'/"><img src="'. base_url() .'/images/delete.png"/></a> </td>';
            echo '</tr>';            
        }
    ?>
        </tbody>
    </table>
    </center>
</div>